<!DOCTYPE html>
<html xmlns:v-bind="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0"/>
    <title>公司产品</title>
    <link rel="icon" type="image/png" href="/img/icon.png">
    <script type="text/javascript" src="/h5/newall/newall.js?c=2"></script>
    <link rel="stylesheet" type="text/css" href="/h5/newall/newall.css?c=2">
</head>
<body>
<div class="mui-content-padded H5body basedata">
    <div class="topmsg">
        <p class="msgtext">注册填写/上传的信息越全面，客户信任度越高</p>
    </div>
    <MCform id="Form" class="mctag" fromapi="/api/app/call/getusers_basechanpinfengge_gs">
        <MCtitle class="mctag">产品风格</MCtitle>
        <div class="content content1 chanpin">
            <h2 class="title">风格类型</h2>
            <p class="desc">请选择，请选择产品，选择不上限</p>
            <ul class="selecttagul selecttagul1">
                <li mcname="fenggelist" v-for="obj in fenggelist" class="tagli"
                    v-bind:class="{on:obj.on}">{{obj.text}}</li>
            </ul>

            <button id="submit" type="submit"
                    class="mui-btn mui-btn-primary">
                保存
            </button>
        </div>
    </MCform>
</div>

<script type="text/javascript" src="/h5/js/all2.js?c=2"></script>
</body>
<style>

</style>
<script>
    var view = new MC.View.MCform('#Form');
    $('.selecttagul1').on('click','.tagli', function () {
        var obj = $(this);
        if(obj.hasClass('on')){
            obj.removeClass('on');
        }else{
            obj.addClass('on');
        }
    });
    $('#submit').on('click',function(){
        var listJQ=$('.selecttagul .tagli.on');
        var list=[];
        for(var i=0;i<listJQ.length;i++){
            list.push($(listJQ[i]).text());
        }
        var fengge=list.join(',');
        MC.apiD('setusers_basechanpinfengge_gs',{
            fengge:fengge
        },function(){
            MC.msg.show('保存成功');
        });
        console.log(list);
    });

</script>
</body>
</html>


















